﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Upload.aspx.cs" Inherits="FEIStorageSite.Upload" MasterPageFile="~/MasterPage.Master" %>
<%@ MasterType VirtualPath="~/MasterPage.Master" %>
<%@ Register Assembly="MSCaptcha"  Namespace="MSCaptcha" TagPrefix="cc1" %>

<asp:Content ID="uploadPage" ContentPlaceHolderID="contentPanel" runat="server">
    <asp:Label CssClass="title" ID="uploadPageTitle" runat="server"></asp:Label>
    <asp:Label CssClass="error" ID="uploadPageError" runat="server"></asp:Label>
    <div class="waiter">Зачекайте будь-ласка...</div>
    <table cellpadding="0" cellspacing="10" class="upload_table">
        <tr>
            <td class="upload_table_header"><asp:Label ID="pathLabel" runat="server">Виберіть файл: </asp:Label></td>
            <td><asp:FileUpload CssClass="file_upload" ID="fileUpload" runat="server" /></td>
        </tr>
        <tr>
            <td class="upload_table_header"><asp:Label ID="nameLabel" runat="server">Назва файлу: </asp:Label></td>
            <td><asp:TextBox ID="nameTextBox" CssClass="name_text_box" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="upload_table_header"><asp:Label ID="descriptionLabel" runat="server">Опис: </asp:Label></td>
            <td><asp:TextBox TextMode="MultiLine" Columns="30" Rows="6" ID="descriptionTextBox" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="upload_table_header"><asp:Label ID="categoryLabel" runat="server">Виберіть категорію: </asp:Label></td>
            <td><asp:ListBox ID="categoriesList" Rows="1" runat="server" DataTextField="Name" DataValueField="ID"></asp:ListBox></td>
        </tr>
        <tr>
            <td><cc1:CaptchaControl ID="uploadCaptcha" runat="server" CaptchaBackgroundNoise="Medium" CaptchaLength="5" CaptchaHeight="35" CaptchaWidth="110" CaptchaLineNoise="Medium" CaptchaMinTimeout="5" CaptchaMaxTimeout="600" /></td>
            <td><asp:TextBox ID="captchaTextBox" runat="server" ></asp:TextBox></td>
        </tr>
        <tr>
            <td colspan="2" class="upload_table_button"><asp:Button ID="submitUploadButton" runat="server" CssClass="submit_button" Text="Завантажити" OnClick="UploadButtonClick" /></td>
        </tr>        
    </table>
</asp:Content>